<?php
use yii\helpers\Html;

/* @var $model \app\models\Comment */

?>
<?php foreach ($models as $model):?>
<ul class="ui-list ui-list-function topicAuthor">
    <li class="ui-border-t">
        <div class="ui-avatar-s">
            <span style="background-image:url(<?= $model->user->getAvatar(); ?>)"></span>
        </div>
        <div class="ui-list-info">
            <h4 class="ui-nowrap"><?= $model->user->uname; ?></h4>
            <p class="ui-nowrap ui-txt-tips ui-txt-muted"><?= \app\utils\BaseUtils::formatTime($model->ctime); ?></p>

        </div>
    </li>
    <li>
        <p class="ui-txt-sub">
            <?= Html::encode($model->content); ?>
        </p>
    </li>
</ul>
<?php endforeach; ?>

